<?php
/**
 * @file cooperationoutresource.php
 * @author CaoQiCheng
 * @date 2016年4月26日 下午14:00:23
 * @brief
 */

namespace haibao\cms\model\data\cooperation;

Class CooperationOutResource extends \haibao\cms\model\data\Base{
	
	/**
	 * 资源类型 1腾讯/2杂志
	 */
	const TYPE_TENCENT = 1;//1腾讯
	const TYPE_MAGAZINE = 2;//2杂志
	
	/**
	 * 合作id
	 */
	public $CooperationId;
	
	/**
	 * 资源类型1腾讯/2杂志
	 */
	public $ResourceType;
	
	/**
	 * 资源名称
	 */
	public $ResourceName;
	
	/**
	 * 资源地址
	 */
	public $ResourceUrl;
	
	/**
	 * PV数
	 */
	public $PvNum;
	
	/**
	 * Uv数
	 */
	public $UvNum;
	
	public function __construct(){
		parent::__construct();
		$this->intField('CooperationId', 'CooperationId',true);
		$this->intField('ResourceType', 'ResourceType',true);
		$this->stringField('ResourceName', 'ResourceName',true);
		$this->stringField('ResourceUrl', 'ResourceUrl');
		$this->intField('PvNum', 'PvNum');
		$this->intField('UvNum', 'UvNum');
		
		$this->setTableName('CooperationOutResource');
	}
}